#include "PolyLineOffset.h"

int CPolyLineOffset::InsertEntity(dmDbLayer *layer,CdmEntityBase *entity,double offset,dmDbEntity *&entityout)
{
	if(!CBaseOffset::OffsertCurve(entity,offset,entityout)) return 0;
	return layer->InsertEntity(entityout)==0;
}
int CPolyLineOffset::CallBack(dmDbLayer* layer,dmDPoint* pts,int npts,CdmEntityBase*& entity)
{
	entity=layer->InsertPolyline(npts,pts);
	return entity!=0;
}